<template>
    <div class="">
        about
    </div>
</template>

<script lang="ts" setup>
import { inject, onMounted } from 'vue';
import { provideKey } from '../const/key';

interface InjectObj {
    name: string
}

const injectObj: InjectObj | undefined = inject(provideKey)
onMounted(() => {
    console.log(injectObj?.name);

})
</script>

<style lang="scss" scoped></style>